package com.scs.application.core.mvc.runner;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class CommandRunner implements CommandLineRunner {
    @Value("${server.port}")
    private String port;

    @Override
    public void run(String... args) {
//        try {
//            Runtime.getRuntime().exec("cmd /c start http://localhost:" + port);
//        } catch (Exception ex) {
//            ex.printStackTrace();
//        }
    }
}
